package wiBase.baseUtil;

import wiBase.WiException;
import wiBase.WiObject;

public class Size extends WiObject{
	private int width=0;
	private int height=0;
	public Size(int width,int height) {
		this.width=width;
		this.height=height;
	}
	public int getWidth() {
		return width;
	}
	public void setWidth(int width) throws WiException {
		if(!isChangeable())
			throw new WiException(WiException.TYPE_CHANGEABLE, "Size can not be changed!");
		this.width = width;
	}
	public int getHeight() {
		return height;
	}
	public void setHeight(int height) throws WiException {
		if(!isChangeable())
			throw new WiException(WiException.TYPE_CHANGEABLE, "Size can not be changed!");
		this.height = height;
	}
	
}
